package com.dongyimai.oauth.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/oauth")
public class LoginControler {

    /**
     * 跳转到登录页面
     */
    @RequestMapping("/login")
    public String login(@RequestParam(value ="from",required = false,defaultValue = "") String from, Model model){
        System.out.println(from);
        model.addAttribute("from",from);
        return "login";
    }
}
